package com.tangzx.builder;

import java.io.FileInputStream;

import flash.swf.Movie;
import flash.swf.MovieDecoder;
import flash.swf.TagDecoder;
import flash.swf.tags.DefineBits;
import flash.swf.tags.DefineBitsJPEG3;
import flash.swf.tags.DefineBitsLossless;
import flash.swf.tags.PlaceObject;


public class BuildSWF {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		TagDecoder decoder = new TagDecoder(new FileInputStream("D:/work/fswd2/ant/bin/test.swf"));
		SwfMovie swf = new SwfMovie();
		MovieDecoder moveDecoder = new SWFHandler(swf);
		decoder.parse(moveDecoder);
		
		System.out.println("test");
	}
}

class SWFHandler extends MovieDecoder
{

	public SWFHandler(Movie m) {
		super(m);
	}
	
	@Override
	public void defineBitsJPEG2(DefineBits tag) {
		// TODO Auto-generated method stub
		super.defineBitsJPEG2(tag);
	}
	
	@Override
	public void defineBitsLossless(DefineBitsLossless tag) {
		// TODO Auto-generated method stub
		super.defineBitsLossless(tag);
	}
	
	@Override
	public void defineBitsJPEG3(DefineBitsJPEG3 tag) {
		// TODO Auto-generated method stub
		super.defineBitsJPEG3(tag);
	}
	
	@Override
	public void defineBitsLossless2(DefineBitsLossless tag) {
		// TODO Auto-generated method stub
		super.defineBitsLossless2(tag);
	}
	
	@Override
	public void defineBits(DefineBits tag) {
		// TODO Auto-generated method stub
		super.defineBits(tag);
	}
	
	@Override
	public void placeObject(PlaceObject tag) {
		// TODO Auto-generated method stub
		super.placeObject(tag);
	}
	
	@Override
	public void placeObject2(PlaceObject tag) {
		// TODO Auto-generated method stub
		super.placeObject2(tag);
	}
	
	@Override
	public void placeObject3(PlaceObject tag) {
		// TODO Auto-generated method stub
		super.placeObject3(tag);
	}
}